// 请求servlet接口
import axios from "axios";

const baseAxios = axios.create({
    baseURL: 'http://localhost:8080/web_war_exploded/',
    timeout:5000
})

export function registAxios(config) {
    return baseAxios(config)
}

export function loggingAxios(config) {
    return baseAxios(config)
}

//正确写法
export function request(config) {
    const baseAxios = axios.create({
        baseURL: 'http://localhost:8080/web_war_exploded/',
        timeout:5000
    })
    return baseAxios(config)
}